/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-02-21 16:14:10
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-02-21 16:48:56
 */
import { defineConfig } from "vite";
import {
  resolve
} from "path"
export default defineConfig({
  resolve: {
     alias: {
       '@': resolve('./lib')
     }
   },
  css:{
    preprocessorOptions: {
      scss: {
        // additionalData: `@import "@/style/base.scss";`
      }
    }
  },
  build: {
    lib: {
      entry: './lib/main.js',
      name: 'Counter',
      fileName: 'counter'
    }
  }
})